package com.wyz.note.mq.rabbit.consumer.receiver;

import com.wyz.note.mq.rabbit.consumer.constant.BaseConstant;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Description: 消息接收监听类(扇型)
 * @Author: wei yz
 * @Date: 2022/6/13 10:55
 */
@Component
@RabbitListener(queues = BaseConstant.FanoutB)
public class FanoutReceiverB {

    @RabbitHandler
    public void process(Map testMessage) {
        System.out.println("FanoutReceiverB消费者收到消息  : " + testMessage.toString());
    }

}
